<?php
class stFacebookAlbum_model extends stmodel_2_1{

    public function __construct($config) {
        parent::__construct ( $config );
        $this->setTableName('st_ap_album');
        $this->setPrimaryKey('id');
    }
    public function get_page($id){
        global $wpdb;
        return $wpdb->get_var("SELECT pagename FROM st_likepluginfbpagelist WHERE pageid = '".$id."'");
    }
    public function get_url($id){
        global $wpdb;
        return $wpdb->get_var("SELECT pageurl FROM st_likepluginfbpagelist WHERE pageid = '".$id."'");
    }


}